package com.itmo.www;

public class fo {
    public static void main(String[] args) {
        int i=0;
        for(i=0;i<=8;i++)
        {
            System.out.println("今天开始我要自己写java");
        }
        System.out.println("---------------");
        for (int j=0;j<6;)
        {
            System.out.println("haha");
            System.out.println(j);
            j++;
        }
        System.out.println("---------------");
        int sum=0;
        for(i=0;i<8;i++)
        {
            sum+=i;
        }
        System.out.println("sum="+sum);

        System.out.println("---------------");
        System.out.println("求一到一百的奇数和\n");
        int na=0;
        for(i=1;i<100;i+=2)
        {
            na+=i;

        }

        System.out.println("na="+na);
        System.out.println("---------------");
        System.out.println("求一到一百的奇数\n");
        for(i=1;i<100;i+=2)
        {
            if(i%2!=0)
            {
                System.out.println("奇数为"+i);
            }

        }
    }
}
